package com.hong.drive.server.common.config;

import com.hong.drive.core.constants.CloudDriveConstants;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "com.hong.drive.server")
@Data
public class DriveServerConfig {

    /**
     * 文件分片的过期天数
     */
    private Integer chunkFileExpirationDays = CloudDriveConstants.ONE_INT;

    /**
     * 分享链接的前缀
     */
    private String sharePrefix = "http://127.0.0.1:8080" + "/share/";
}
